b53fcb68d8f0d6cf53d4450d7ed8c5467449e68e,core/src/main/java/org/neo4j/ogm/context/EntityGraphMapper.java,EntityGraphMapper,deleteObsoleteRelationships,#Compiler#,147

Before Change


     */
    private void deleteObsoleteRelationships(Compiler compiler) {
        CompileContext context = compiler.context();
        Iterator<MappedRelationship> mappedRelationshipIterator = mappingContext.getRelationships().iterator();

        while (mappedRelationshipIterator.hasNext()) {

            MappedRelationship mappedRelationship = mappedRelationshipIterator.next();
            // if we cannot remove this relationship from the compile context, it
            // means the user has deleted the relationship
            if (!context.removeRegisteredRelationship(mappedRelationship)) {

After Change


    private void deleteObsoleteRelationships(Compiler compiler) {
        CompileContext context = compiler.context();

        for (MappedRelationship mappedRelationship : mappingContext.getRelationships()) {

            // if we cannot remove this relationship from the compile context, it
            // means the user has deleted the relationship